﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeighClient.Model
{
    public class RunTimeVariable
    {
        public bool ApplicationIsRuning = true;
        public bool AutoWeigh = false;

        public bool WeighComplete = false;
        
        public bool CanOpenIoComm = false;

        public string Weight = "0.00";
        public string WeightLastTime = "";
        public bool WeighSteady = false;

        public string CarNo = "";
        public string CarDirection = "";
        public string CardGuid = "";
        public string BillId = "";

        public bool ReadCarding = false;
        public bool UploadBilling = false;

        public string loginUserId = "";
        public string loginUserName = "";

        public int Status = (int)Operation.Wait;
        public enum Operation { Wait, CarNo, StartReadCard, ReadCard, ReadWeight, UploadBillInfo, Warning, ReadingIOInput};
        public string[] OperationMessage = { "等待", "获取车牌", "开始读卡", "读卡", "读取重量", "上传过磅信息", "异常警告" , "读取车检器状态"};

    }
}
